# -*- coding: utf-8 -*-
player = {'毛毛': {'糖果': [2, 6], '威力': [2, 7], '速度': [5, 8]}, '阿莎': {'糖果': [2, 6], '威力': [2, 7], '速度': [5, 8]},
          '悟空': {'糖果': [2, 7], '威力': [1, 8], '速度': [4, 7]}, '泰坦': {'糖果': [2, 6], '威力': [3, 9], '速度': [3, 6]},
          '小倩': {'糖果': [1, 6], '威力': [1, 9], '速度': [5, 7]}, '春丽': {'糖果': [1, 7], '威力': [3, 9], '速度': [5, 7]},
          '波波丽': {'糖果': [2, 7], '威力': [3, 9], '速度': [3, 7]}, '火影': {'糖果': [1, 6], '威力': [1, 7], '速度': [5, 8]},
          '玛丽亚': {'糖果': [1, 8], '威力': [3, 9], '速度': [3, 8]}, '海王子': {'糖果': [1, 7], '威力': [1, 6], '速度': [5, 8]},
          '伊丹': {'糖果': [1, 6], '威力': [1, 6], '速度': [5, 8]}, '克莉斯': {'糖果': [2, 8], '威力': [1, 6], '速度': [4, 7]},
          '泰比': {'糖果': [2, 8], '威力': [1, 5], '速度': [3, 6]}, '多吉': {'糖果': [2, 6], '威力': [1, 5], '速度': [4, 6]},
          '可乐': {'糖果': [2, 8], '威力': [3, 7], '速度': [4, 6]}, '哪吒': {'糖果': [1, 7], '威力': [2, 6], '速度': [5, 8]},
          '丫丫': {'糖果': [1, 8], '威力': [3, 9], '速度': [4, 8]}, '乌拉拉': {'糖果': [2, 7], '威力': [3, 9], '速度': [4, 8]}}
key_number = '糖果'
key_power= '威力'
key_speed='速度'
allcharacters = "1_mm|2_as|3_wk|4_tt|5_xq|6_cl|7_bbl|8_hy|9_mly|10_hwz|11_yd|12_ld|13_dj|14_tb|15_xz|16_cbz|17_xxm|18_jwz|19_kl".split('|')
character_names = ['毛毛', '阿莎', '悟空', '泰坦', '小倩', '春丽', '波波丽', '火影', '玛丽亚', '海王子', '伊丹', '克莉斯', '多吉','泰比',  '可乐', '哪吒', '丫丫', '乌拉拉']

character_index_to_name  = {i+9 :character_names[i] for i in range(len(character_names))}
def get_character_all_attributes(i):
    return player[character_index_to_name[i] ] 
def get_character_attributes(i,ablity_key):
    return player[character_index_to_name[i] ][ablity_key]
character_py_names = ['boy', 'girl', 'xwk', 'tt', 'xq', 'cl', 'bbl', 'hy', 'mly', 'hwz', 'yd', 'ld', 'tb', 'ge', 'kl', 'nz', 'yy', 'wll']
#character_names2py = {k:v for k,v in zip(character_names,character_py_names)}
character_names2py = {'毛毛': 'boy', '阿莎': 'girl', '悟空': 'xwk', '泰坦': 'tt', '小倩': 'xq', '春丽': 'cl', '波波丽': 'bbl', '火影': 'hy', '玛丽亚': 'mly', '海王子': 'hwz', '伊丹': 'yd', '克莉斯': 'ld', '多吉': 'ge', '泰比': 'tb', '可乐': 'kl', '哪吒': 'nz', '丫丫': 'yy', '乌拉拉': 'wll'}

print(character_names2py)
statist_topleft = (523, 115)
map_sel_topleft =(462, 53)

map_sel_item_topleft =(481, 72)
map_sel_item_interval = 20

map_sel_confirm = (480, 553)
map_sel_back = (480+70, 553)
match_element_n =9
bun_element_n =28
game_topleft = (8,5)
game_zone = (48, 165)
#520, 320
#526,60+ i * 38
room_button_topleft = (526,60)
room_button_interval_y = 38

bag_x,bag_y = (525, 375)
# 房间 开始按钮
start_btn_x ,start_btn_y=  545, 525

return_btn_x , return_btn_y = start_btn_x+172,start_btn_y+2
btn_pos = {'start':[ 545, 525],'return':[return_btn_x , return_btn_y ],
           'saveReplay':(635,534),'leavegame':(735,534) }
img_pos = {'dlg_statusBar':(0,540) , 'dlg_playerList':(800-184,0),'dlg_pveFunc':(800-184,520)}
map_mini_pos = (635, 56)

grid_w = 40
grid_h = 40
exptime =  4000
endtime = 4500

map_match01={}
for row in range(8):
    for col in range(5):
        map_match01[(col,row)] = 2
    for col in range(8,13):
        map_match01[(col,row)] = 3
lrud = ['left','right','up','down']
bun02 = {(3, 12): 7, (5, 5): 12, (0, 11): 7, (9, 11): 7, (4, 8): 12, (5, 10): 9, (13, 8): 7, (0, 3): 7, (11, 9): 7, (4, 0): 7, (10, 12): 7, (2, 8): 7, (12, 7): 7, (3, 10): 7, (14, 1): 7, (1, 7): 7, (1, 12): 7, (3, 4): 12, (2, 6): 12, (12, 5): 7, (3, 5): 7, (12, 2): 7, (2, 9): 12, (13, 4): 7, (11, 0): 7, (14, 12): 7, (10, 4): 12, (5, 6): 7, (14, 11): 7, (11, 8): 12, (0, 0): 7, (9, 9): 7, (12, 6): 12, (14, 2): 7, (10, 5): 12, (4, 3): 7, (0, 8): 7, (5, 2): 7, (12, 1): 12, (0, 1): 7, (0, 5): 7, (12, 12): 7, (14, 0): 7, (7, 0): 10, (9, 8): 12, (14, 6): 12, (1, 9): 12, (11, 6): 7, (13, 0): 7, (13, 7): 7, (1, 10): 7, (0, 6): 12, (2, 3): 7, (0, 12): 7, (4, 7): 12, (14, 3): 7, (1, 4): 12, (11, 7): 7, (14, 7): 7, (13, 3): 7, (13, 9): 7, (7, 6): 7, (2, 10): 7, (11, 5): 7, (13, 1): 7, (0, 7): 12, (2, 4): 12, (3, 8): 7, (3, 0): 7, (2, 12): 7, (13, 6): 12, (12, 4): 12, (9, 7): 7, (1, 0): 7, (0, 10): 7, (1, 3): 7, (10, 9): 7, (12, 8): 12, (2, 7): 7, (0, 2): 7, (0, 4): 7, (13, 5): 7, (3, 6): 7, (13, 2): 12, (12, 3): 7, (11, 4): 12, (4, 6): 7, (10, 6): 7, (2, 5): 7, (14, 10): 7, (9, 6): 7, (1, 1): 8, (14, 8): 12, (3, 3): 7, (8, 6): 7, (5, 4): 7, (0, 9): 7, (14, 9): 7, (10, 7): 7, (6, 6): 7, (12, 9): 7, (1, 6): 12, (4, 4): 12, (11, 2): 7, (6, 3): 8, (5, 7): 8, (10, 10): 8, (14, 5): 12, (1, 8): 7, (12, 0): 7, (14, 4): 7, (11, 12): 7, (3, 7): 7, (4, 5): 12, (3, 9): 12, (10, 8): 12, (1, 11): 7, (1, 5): 7, (2, 0): 7, (2, 11): 12, (13, 12): 7}
bun03 = {(3, 12): 12, (8, 10): 1, (9, 0): 5, (9, 11): 3, (4, 8): 3, (5, 10): 1, (11, 9): 3, (0, 3): 1, (4, 0): 12, (10, 12): 5, (11, 3): 3, (3, 10): 12, (3, 2): 3, (1, 12): 12, (12, 2): 12, (7, 2): 1, (11, 0): 12, (2, 9): 3, (8, 7): 5, (14, 12): 12, (5, 6): 3, (10, 4): 3, (7, 7): 5, (0, 0): 12, (9, 3): 6, (6, 8): 5, (9, 9): 6, (4, 3): 3, (7, 12): 5, (0, 8): 1, (6, 0): 3, (4, 12): 5, (5, 2): 1, (7, 3): 3, (8, 8): 5, (7, 9): 3, (8, 4): 5, (6, 11): 3, (5, 12): 12, (14, 0): 12, (12, 12): 12, (12, 10): 12, (9, 1): 3, (7, 0): 12, (6, 9): 3, (9, 8): 1, (1, 9): 1, (13, 0): 12, (10, 2): 5, (8, 9): 3, (7, 10): 1, (1, 10): 12, (2, 3): 3, (0, 12): 12, (14, 3): 1, (4, 2): 12, (9, 2): 1, (6, 4): 5, (13, 3): 1, (8, 3): 3, (5, 1): 3, (13, 9): 1, (7, 6): 3, (2, 10): 12, (11, 5): 10, (9, 12): 5, (2, 2): 12, (10, 3): 3, (9, 10): 1, (3, 0): 5, (2, 12): 3, (1, 0): 12, (6, 7): 1, (10, 0): 12, (11, 10): 3, (6, 5): 1, (5, 8): 1, (4, 10): 5, (1, 3): 1, (10, 9): 3, (5, 11): 3, (0, 4): 1, (6, 1): 3, (13, 2): 12, (12, 3): 3, (6, 2): 1, (9, 6): 3, (6, 10): 1, (13, 10): 6, (8, 0): 12, (8, 11): 3, (4, 9): 3, (14, 8): 1, (3, 3): 3, (8, 6): 3, (5, 4): 1, (8, 2): 1, (6, 12): 12, (0, 9): 1, (7, 11): 3, (14, 9): 1, (6, 6): 5, (12, 9): 3, (11, 2): 12, (4, 4): 3, (6, 3): 3, (7, 1): 3, (5, 9): 6, (5, 0): 5, (10, 10): 12, (8, 1): 3, (8, 5): 5, (5, 3): 6, (7, 5): 5, (12, 0): 3, (1, 2): 6, (14, 4): 1, (11, 12): 12, (7, 8): 1, (3, 9): 3, (10, 8): 3, (9, 4): 1, (8, 12): 3, (1, 5): 9, (2, 0): 12, (13, 12): 12}
bun04 = {(5, 5): 8, (8, 10): 1, (9, 0): 5, (9, 11): 12, (4, 8): 12, (5, 10): 12, (13, 8): 12, (0, 3): 3, (11, 9): 3, (4, 0): 3, (10, 12): 1, (2, 8): 5, (12, 7): 1, (3, 2): 1, (1, 7): 3, (3, 4): 12, (2, 6): 5, (12, 5): 5, (3, 5): 3, (7, 2): 5, (8, 7): 7, (10, 4): 5, (7, 7): 7, (14, 12): 1, (14, 11): 3, (11, 8): 12, (0, 0): 1, (9, 3): 12, (7, 4): 7, (6, 8): 7, (9, 9): 12, (12, 6): 5, (10, 5): 7, (7, 12): 12, (0, 8): 5, (6, 0): 1, (4, 12): 6, (5, 2): 3, (13, 11): 12, (0, 1): 1, (0, 5): 1, (7, 3): 12, (8, 4): 7, (7, 9): 5, (6, 11): 1, (5, 12): 12, (12, 12): 3, (12, 10): 5, (10, 11): 12, (9, 1): 3, (7, 0): 12, (6, 9): 5, (9, 8): 12, (14, 6): 12, (11, 6): 3, (10, 2): 12, (8, 9): 1, (7, 10): 5, (9, 5): 7, (0, 6): 12, (3, 1): 3, (2, 3): 1, (4, 7): 7, (1, 4): 12, (4, 2): 1, (11, 7): 1, (9, 2): 5, (6, 4): 7, (14, 7): 1, (8, 3): 12, (5, 1): 5, (13, 9): 5, (11, 5): 3, (0, 7): 12, (9, 12): 1, (2, 4): 12, (2, 2): 12, (3, 8): 5, (10, 3): 12, (9, 10): 1, (13, 6): 1, (12, 4): 6, (4, 1): 5, (9, 7): 12, (1, 0): 1, (6, 7): 7, (11, 10): 5, (10, 0): 12, (0, 10): 10, (5, 8): 7, (4, 10): 6, (1, 3): 12, (10, 9): 3, (12, 8): 12, (2, 7): 5, (0, 2): 3, (5, 11): 1, (0, 4): 1, (13, 5): 3, (3, 6): 1, (6, 2): 3, (11, 4): 5, (4, 6): 7, (10, 6): 7, (2, 5): 3, (14, 10): 1, (9, 6): 7, (6, 10): 1, (1, 1): 12, (13, 10): 5, (14, 8): 3, (4, 9): 12, (8, 0): 12, (3, 3): 1, (8, 2): 3, (5, 4): 6, (6, 12): 12, (12, 11): 12, (7, 11): 3, (10, 7): 7, (14, 9): 1, (12, 9): 3, (4, 4): 7, (1, 6): 3, (2, 1): 5, (6, 3): 3, (7, 1): 1, (5, 7): 7, (5, 9): 12, (5, 0): 3, (10, 10): 3, (8, 1): 3, (14, 5): 12, (5, 3): 1, (11, 11): 1, (1, 2): 12, (14, 4): 6, (12, 0): 9, (4, 5): 7, (3, 7): 1, (7, 8): 7, (10, 8): 7, (9, 4): 7, (8, 12): 3, (1, 5): 1, (2, 0): 1, (13, 12): 3}
bun05 = {(3, 12): 4, (5, 5): 12, (8, 10): 4, (0, 11): 4, (9, 0): 2, (9, 11): 4, (4, 8): 12, (5, 10): 12, (13, 8): 4, (4, 0): 2, (10, 12): 5, (2, 8): 12, (12, 7): 2, (14, 1): 2, (3, 4): 4, (1, 12): 2, (2, 6): 5, (12, 2): 12, (11, 0): 4, (13, 4): 6, (8, 7): 12, (5, 6): 4, (10, 4): 12, (11, 8): 2, (0, 0): 9, (9, 3): 12, (6, 8): 4, (9, 9): 12, (14, 2): 12, (12, 6): 5, (10, 5): 12, (4, 3): 5, (4, 12): 4, (6, 0): 12, (5, 2): 5, (12, 1): 2, (0, 5): 4, (8, 8): 12, (8, 4): 4, (6, 11): 6, (5, 12): 2, (14, 0): 4, (10, 1): 2, (12, 10): 10, (10, 11): 5, (9, 1): 4, (6, 9): 12, (14, 6): 5, (4, 11): 2, (11, 6): 2, (13, 0): 2, (13, 7): 4, (10, 2): 4, (8, 9): 12, (9, 5): 4, (1, 10): 12, (0, 6): 5, (0, 12): 2, (4, 7): 12, (4, 2): 5, (1, 4): 2, (11, 7): 2, (9, 2): 4, (14, 7): 4, (6, 4): 12, (8, 3): 12, (5, 1): 4, (2, 10): 12, (13, 1): 2, (9, 12): 5, (3, 8): 12, (10, 3): 12, (9, 10): 4, (3, 11): 4, (3, 0): 1, (2, 12): 2, (13, 6): 5, (12, 4): 12, (6, 7): 12, (10, 0): 2, (0, 10): 12, (6, 5): 12, (5, 8): 4, (4, 10): 12, (10, 9): 12, (5, 11): 2, (6, 1): 6, (13, 2): 12, (11, 4): 12, (6, 2): 12, (10, 6): 12, (2, 5): 4, (9, 6): 12, (6, 10): 12, (8, 0): 2, (8, 11): 6, (4, 9): 12, (3, 3): 4, (8, 6): 12, (5, 4): 4, (8, 2): 12, (6, 12): 4, (10, 7): 4, (6, 6): 12, (11, 2): 4, (1, 6): 5, (4, 4): 12, (6, 3): 4, (5, 7): 12, (5, 9): 4, (5, 0): 4, (10, 10): 5, (8, 1): 6, (14, 5): 4, (5, 3): 4, (8, 5): 12, (12, 0): 4, (1, 8): 6, (11, 12): 2, (3, 7): 4, (4, 5): 12, (9, 4): 4, (1, 11): 4, (8, 12): 12, (1, 5): 4, (2, 11): 2, (11, 1): 4}
bun06 = {(3, 12): 12, (5, 5): 1, (8, 10): 1, (9, 0): 3, (9, 11): 2, (4, 8): 3, (5, 10): 2, (13, 8): 6, (11, 9): 1, (10, 12): 12, (4, 0): 1, (2, 8): 5, (11, 3): 3, (3, 10): 1, (14, 1): 3, (3, 2): 2, (1, 12): 12, (3, 4): 6, (2, 6): 1, (12, 5): 2, (7, 2): 5, (2, 9): 2, (13, 4): 2, (11, 0): 2, (14, 12): 12, (7, 7): 6, (5, 6): 3, (0, 0): 2, (7, 4): 6, (6, 8): 5, (9, 9): 1, (12, 6): 2, (10, 5): 2, (7, 12): 12, (6, 0): 2, (4, 12): 4, (13, 11): 12, (0, 1): 2, (7, 3): 5, (8, 8): 5, (7, 9): 1, (6, 11): 12, (5, 12): 3, (12, 12): 4, (14, 0): 2, (12, 10): 1, (10, 11): 12, (7, 0): 5, (6, 9): 1, (9, 8): 5, (4, 11): 12, (13, 0): 3, (8, 9): 2, (7, 10): 2, (1, 10): 1, (9, 5): 1, (3, 1): 1, (0, 12): 12, (4, 7): 5, (1, 4): 3, (11, 7): 6, (7, 6): 5, (2, 10): 1, (13, 1): 3, (9, 12): 3, (3, 8): 5, (9, 10): 1, (3, 11): 12, (2, 12): 12, (3, 0): 2, (13, 6): 2, (4, 1): 9, (1, 0): 3, (11, 10): 2, (10, 0): 2, (6, 5): 2, (5, 8): 5, (4, 10): 1, (10, 9): 2, (12, 8): 5, (5, 11): 1, (13, 5): 1, (11, 4): 6, (4, 6): 1, (10, 6): 3, (2, 5): 2, (9, 6): 3, (6, 10): 1, (1, 1): 3, (13, 10): 1, (8, 0): 3, (8, 11): 12, (4, 9): 1, (3, 3): 3, (8, 6): 3, (6, 12): 12, (12, 11): 12, (7, 11): 12, (10, 7): 5, (6, 6): 3, (12, 9): 2, (1, 6): 1, (11, 2): 2, (7, 1): 5, (5, 9): 1, (5, 0): 3, (10, 10): 1, (8, 1): 10, (8, 5): 2, (11, 11): 2, (7, 5): 5, (1, 8): 6, (11, 12): 3, (3, 7): 6, (4, 5): 1, (7, 8): 3, (3, 9): 1, (10, 8): 5, (1, 11): 12, (8, 12): 4, (1, 5): 1, (2, 11): 2, (13, 12): 12, (11, 1): 1}
bun07={(3, 12): 2, (5, 5): 4, (8, 10): 5, (0, 11): 2, (9, 0): 4, (4, 8): 5, (5, 10): 4, (11, 9): 6, (10, 12): 4, (4, 0): 4, (11, 3): 6, (3, 10): 2, (14, 1): 2, (3, 2): 2, (1, 12): 2, (12, 5): 10, (12, 2): 2, (11, 0): 2, (8, 7): 5, (14, 12): 2, (10, 4): 5, (7, 7): 4, (5, 6): 4, (14, 11): 2, (0, 0): 2, (9, 3): 4, (6, 8): 5, (7, 4): 4, (9, 9): 4, (14, 2): 2, (10, 5): 5, (7, 12): 5, (6, 0): 5, (5, 2): 4, (13, 11): 2, (12, 1): 2, (0, 1): 2, (0, 5): 9, (7, 3): 5, (8, 8): 5, (8, 4): 5, (7, 9): 5, (6, 11): 5, (5, 12): 4, (14, 0): 2, (12, 12): 2, (10, 1): 5, (12, 10): 2, (10, 11): 5, (7, 0): 5, (6, 9): 5, (1, 9): 2, (4, 11): 5, (13, 0): 2, (10, 2): 5, (1, 10): 2, (9, 5): 4, (3, 1): 2, (0, 12): 2, (4, 7): 5, (4, 2): 5, (9, 2): 4, (6, 4): 5, (13, 3): 2, (8, 3): 5, (13, 9): 2, (7, 6): 4, (2, 10): 2, (13, 1): 2, (9, 12): 4, (2, 2): 2, (9, 10): 4, (3, 11): 2, (3, 0): 2, (2, 12): 2, (4, 1): 5, (9, 7): 4, (1, 0): 2, (6, 7): 5, (11, 10): 2, (0, 10): 2, (6, 5): 5, (4, 10): 5, (1, 3): 2, (0, 2): 2, (13, 2): 2, (6, 2): 5, (4, 6): 5, (10, 6): 5, (14, 10): 2, (9, 6): 4, (6, 10): 5, (1, 1): 2, (13, 10): 2, (8, 0): 4, (3, 3): 6, (8, 2): 5, (6, 12): 4, (12, 11): 2, (7, 11): 5, (10, 7): 5, (11, 2): 2, (4, 4): 5, (2, 1): 2, (7, 1): 5, (5, 7): 4, (5, 9): 4, (5, 0): 4, (10, 10): 5, (8, 1): 5, (8, 5): 5, (5, 3): 4, (11, 11): 2, (7, 5): 4, (1, 2): 2, (12, 0): 2, (11, 12): 2, (4, 5): 5, (7, 8): 4, (3, 9): 6, (10, 8): 5, (1, 11): 2, (8, 12): 5, (2, 0): 2, (2, 11): 2, (13, 12): 2, (11, 1): 2}
{(3, 12): 2, (5, 5): 4, (8, 10): 5, (0, 11): 2, (9, 0): 4, (4, 8): 5, (5, 10): 4, (11, 9): 6, (10, 12): 4, (4, 0): 4, (11, 3): 6, (3, 10): 2, (14, 1): 2, (3, 2): 2, (1, 12): 2, (12, 5): 10, (12, 2): 2, (11, 0): 2, (8, 7): 5, (14, 12): 2, (10, 4): 5, (7, 7): 4, (5, 6): 4, (14, 11): 2, (0, 0): 2, (9, 3): 4, (6, 8): 5, (7, 4): 4, (9, 9): 4, (14, 2): 2, (10, 5): 5, (7, 12): 5, (6, 0): 5, (5, 2): 4, (13, 11): 2, (12, 1): 2, (0, 1): 2, (0, 5): 9, (7, 3): 5, (8, 8): 5, (8, 4): 5, (7, 9): 5, (6, 11): 5, (5, 12): 4, (14, 0): 2, (12, 12): 2, (10, 1): 5, (12, 10): 2, (10, 11): 5, (7, 0): 5, (6, 9): 5, (1, 9): 2, (4, 11): 5, (13, 0): 2, (10, 2): 5, (1, 10): 2, (9, 5): 4, (3, 1): 2, (0, 12): 2, (4, 7): 5, (4, 2): 5, (9, 2): 4, (6, 4): 5, (13, 3): 2, (8, 3): 5, (13, 9): 2, (7, 6): 4, (2, 10): 2, (13, 1): 2, (9, 12): 4, (2, 2): 2, (9, 10): 4, (3, 11): 2, (3, 0): 2, (2, 12): 2, (4, 1): 5, (9, 7): 4, (1, 0): 2, (6, 7): 5, (11, 10): 2, (0, 10): 2, (6, 5): 5, (4, 10): 5, (1, 3): 2, (0, 2): 2, (13, 2): 2, (6, 2): 5, (4, 6): 5, (10, 6): 5, (14, 10): 2, (9, 6): 4, (6, 10): 5, (1, 1): 2, (13, 10): 2, (8, 0): 4, (3, 3): 6, (8, 2): 5, (6, 12): 4, (12, 11): 2, (7, 11): 5, (10, 7): 5, (11, 2): 2, (4, 4): 5, (2, 1): 2, (7, 1): 5, (5, 7): 4, (5, 9): 4, (5, 0): 4, (10, 10): 5, (8, 1): 5, (8, 5): 5, (5, 3): 4, (11, 11): 2, (7, 5): 4, (1, 2): 2, (12, 0): 2, (11, 12): 2, (4, 5): 5, (7, 8): 4, (3, 9): 6, (10, 8): 5, (1, 11): 2, (8, 12): 5, (2, 0): 2, (2, 11): 2, (13, 12): 2, (11, 1): 2}
bun13 = {(5, 5): 2, (8, 10): 2, (11, 9): 7, (12, 7): 2, (3, 2): 4, (1, 7): 2, (2, 6): 1, (12, 5): 2, (3, 5): 2, (7, 2): 4, (8, 7): 2, (5, 6): 4, (7, 7): 1, (6, 8): 2, (7, 4): 4, (12, 6): 1, (10, 5): 2, (4, 3): 7, (7, 12): 4, (6, 0): 2, (13, 11): 7, (0, 5): 2, (7, 3): 1, (8, 8): 2, (8, 4): 2, (7, 9): 1, (6, 11): 2, (12, 10): 4, (10, 11): 7, (7, 0): 4, (6, 9): 2, (14, 6): 1, (1, 9): 10, (11, 6): 4, (13, 7): 2, (8, 9): 2, (7, 10): 4, (9, 5): 2, (0, 6): 1, (3, 1): 7, (2, 3): 7, (4, 7): 2, (4, 2): 7, (11, 7): 2, (6, 4): 2, (14, 7): 2, (8, 3): 2, (13, 9): 7, (7, 6): 6, (11, 5): 2, (0, 7): 2, (2, 2): 4, (13, 6): 4, (4, 1): 7, (9, 7): 2, (6, 7): 2, (11, 10): 4, (6, 5): 2, (1, 3): 7, (10, 9): 7, (2, 7): 2, (6, 1): 2, (13, 5): 2, (3, 6): 4, (6, 2): 2, (4, 6): 1, (10, 6): 1, (2, 5): 2, (9, 6): 4, (6, 10): 2, (1, 1): 7, (13, 10): 7, (8, 11): 2, (8, 0): 2, (3, 3): 7, (8, 6): 1, (8, 2): 2, (6, 12): 2, (12, 11): 7, (7, 11): 1, (10, 7): 2, (6, 6): 1, (12, 9): 7, (1, 6): 4, (2, 1): 7, (6, 3): 2, (7, 1): 1, (5, 7): 2, (10, 10): 7, (8, 1): 2, (14, 5): 2, (8, 5): 2, (11, 11): 7, (7, 5): 1, (1, 2): 7, (4, 5): 2, (3, 7): 2, (7, 8): 4, (8, 12): 2, (1, 5): 2, (11, 1): 9}


map_match02 = {(5, 5): 2, (0, 7): 2, (2, 2): 3, (9, 0): 2, (3, 0): 2, (0, 3): 2, (4, 0): 2, (12, 7): 2, (12, 4): 2, (9, 7): 2, (1, 0): 2, (3, 2): 3, (6, 7): 3, (10, 0): 2, (1, 7): 2, (6, 5): 2, (3, 4): 3, (12, 5): 2, (3, 5): 3, (12, 2): 2, (7, 2): 2, (2, 7): 2, (11, 0): 2, (8, 7): 2, (0, 2): 2, (0, 4): 2, (7, 7): 2, (5, 6): 2, (0, 0): 2, (9, 3): 3, (6, 1): 3, (12, 3): 2, (6, 2): 2, (2, 5): 3, (12, 6): 2, (10, 5): 3, (6, 0): 3, (5, 2): 2, (8, 0): 2, (3, 3): 3, (12, 1): 2, (0, 1): 2, (0, 5): 2, (10, 7): 2, (6, 6): 3, (7, 0): 2, (7, 1): 2, (5, 7): 2, (5, 0): 2, (10, 2): 3, (9, 5): 3, (0, 6): 2, (7, 5): 2, (12, 0): 2, (4, 7): 2, (3, 7): 2, (11, 7): 2, (9, 4): 3, (9, 2): 3, (2, 0): 2, (5, 1): 2, (7, 6): 2}
map_match03 = {(11, 5): 3, (5, 5): 2, (2, 4): 2, (2, 2): 3, (10, 3): 2, (9, 0): 3, (3, 0): 3, (0, 3): 2, (4, 0): 2, (11, 3): 2, (4, 1): 2, (12, 4): 2, (9, 7): 3, (3, 2): 2, (6, 7): 3, (6, 5): 3, (3, 4): 3, (12, 5): 3, (1, 3): 2, (3, 5): 2, (12, 2): 3, (7, 2): 3, (0, 2): 3, (8, 7): 2, (0, 4): 2, (10, 4): 2, (7, 7): 2, (5, 6): 3, (6, 1): 3, (9, 3): 2, (3, 6): 3, (12, 3): 2, (6, 2): 2, (11, 4): 2, (4, 6): 2, (7, 4): 3, (2, 5): 3, (10, 5): 3, (9, 6): 3, (4, 3): 3, (6, 0): 2, (8, 0): 2, (5, 2): 3, (3, 3): 2, (0, 5): 3, (7, 3): 2, (8, 6): 2, (8, 2): 2, (5, 4): 3, (8, 4): 2, (6, 6): 2, (11, 2): 3, (4, 4): 2, (9, 1): 3, (7, 0): 3, (7, 1): 2, (6, 3): 3, (5, 7): 2, (5, 0): 3, (10, 2): 3, (8, 1): 2, (9, 5): 2, (8, 5): 3, (5, 3): 2, (3, 1): 3, (2, 3): 2, (7, 5): 2, (1, 2): 3, (4, 7): 2, (4, 5): 3, (3, 7): 3, (4, 2): 2, (1, 4): 2, (9, 4): 3, (9, 2): 2, (6, 4): 2, (1, 5): 3, (8, 3): 3, (5, 1): 2, (7, 6): 3}
map_match_diy ={(3, 0): 2, (0, 3): 2, (12, 7): 2, (1, 0): 2, (6, 7): 2, (1, 7): 2, (6, 5): 2, (2, 6): 2, (3, 5): 2, (7, 2): 2, (0, 2): 2, (11, 0): 2, (0, 4): 2, (7, 7): 2, (9, 3): 2, (6, 1): 2, (3, 6): 2, (6, 2): 2, (10, 6): 2, (7, 4): 2, (10, 5): 2, (4, 3): 2, (1, 1): 2, (6, 0): 2, (0, 1): 2, (0, 5): 2, (7, 3): 2, (8, 4): 2, (6, 6): 2, (10, 1): 2, (4, 4): 2, (1, 6): 2, (7, 0): 2, (6, 3): 2, (7, 1): 2, (11, 6): 2, (10, 2): 2, (9, 5): 2, (0, 6): 2, (3, 1): 2, (7, 5): 2, (12, 0): 2, (4, 2): 2, (11, 7): 2, (9, 4): 2, (9, 2): 2, (6, 4): 2, (2, 0): 2, (8, 3): 2, (11, 1): 2, (7, 6): 2}